import yRequest from "../request"

/**
 * @description: 登录请求
 * @param {type}
 * @return {type}
 */
export function login(data = {}, config = {}) {
  return yRequest.post("login", "/device/login", data, config)
}

/**
 * @description: 登出请求
 * @param {type}
 * @return {type}
 */
export function logout(data = {}, config = {}) {
  return yRequest.post("logout", "/device/logout", data, config)
}

/**
 * @description: 查询人脸图片
 */
export function getFaceImageBase64(data = {}, config = {}) {
  return yRequest.post("getFaceImageBase64", "/common/gain/face", data, config)
}
